package cn.ruleengine.web.function;

import cn.hutool.core.lang.Validator;
import cn.ruleengine.core.annotation.Executor;
import cn.ruleengine.core.annotation.Function;
import cn.ruleengine.core.annotation.Param;
import lombok.extern.slf4j.Slf4j;

/**
 * 验证是否为手机号码
 */
@Slf4j
@Function
public class IsMobileFunction {
    @Executor
    public Boolean executor(@Param("mobile") String mobile) {
        return Validator.isMobile(mobile);
    }
}
